import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Order from '@/components/Order'
import Login from '@/components/Login'
import Registered from '@/components/Registered'
import ServerAdd from '@/components/ServerAdd'
import ServerShow from '@/components/ServerShow'
import Map from '@/components/Map'
import Car from '@/components/Car'
import ServerEdit from '@/components/ServerEdit'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/Order',
      name: 'Order',
      component: Order
    },
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Registered',
      name: 'Registered',
      component: Registered
    },
    {
      path: '/ServerAdd',
      name: 'ServerAdd',
      component: ServerAdd
    },
    {
      path: '/ServerShow',
      name: 'ServerShow',
      component: ServerShow
    },
    {
      path: '/Map',
      name: 'Map',
      component: Map
    },
    {
      path: '/Car',
      name: 'Car',
      component: Car
    },
    {
      path: '/ServerEdit',
      name: 'ServerEdit',
      component: ServerEdit
    }
  ]
})
